Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for ingrate vue router #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

angelkurten
Copy link

Add changes for comptable with vue-router

Menu::create('management', function($menu) { $menu->dropdown('core::core.management', function ($sub) { $sub->url('profile', 'Design', ['icon' => 'far fa-circle nav-icon', 'vue' => true]); },[ 'icon' => 'nav-icon fas fa-cogs green' ]); });

Generate

<router-link to="profile" class="nav-link" ><i class="far fa-circle nav-icon"></i> <span>Design</span></router-link>

@angelkurten angelkurten mentioned this pull request Jan 24, 2019
@@ -27,7 +27,8 @@ public function getCloseTagWrapper()
*/
public function getMenuWithoutDropdownWrapper($item)
{
return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>' . $item->getIcon() . ' <span>' . $item->title . '</span></a></li>' . PHP_EOL;
//return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>' . $item->getIcon() . ' <span>' . $item->title . '</span></a></li>' . PHP_EOL;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code please.

@nWidart
Copy link
Owner

nWidart commented Jan 25, 2019

Thank you for your contribution.

Could you add a test for this new use-case please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants